import type {IBanner} from '~/types/api'
/**
*@desc 轮播图接口
*/
export const getBanner = async (location: string) => {
    return await useApi<IBanner>('/banner/v1/list', {
        method: 'get',
        params:{
            location
        }
    })
}